﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

using RushTracker.Core;
using RushTracker.Core.Data;
using RushTracker.Core.Util;

namespace RushTracker.Web.UI
{
    public abstract class RushTrackerMasterPage : ViewMasterPage
    {
        private IDataRepository _data;

        public RushTrackerMasterPage()
            : base()
        {
            this._data = IoC.Resolve<IDataRepository>();
        }

        protected IDataRepository DataRepository
        {
            get { return this._data; }
        }

        protected Site SiteSettings
        {
            get { return RushTracker.Core.Site.Instance; }
        }
    }
}
